package com.wasu.entity.live;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <p>------------------------------------------------------
 * <p>Copyright (C) 2020 wasu company, All rights reserved.
 * <p>------------------------------------------------------
 * <p> 频道是否授权，授权频道id以逗号分隔
 * <p>
 *
 * @author Created by zhangmz
 * @date on 2023/8/21
 */
public class WasuChAuth implements Parcelable {

    private String result;
    private String resultDesc;

    /**
     * 授权ID字符串：多个以英文逗号分隔
     */
    private String capIds;

    public WasuChAuth(){

    }

    public WasuChAuth(String result, String resultDesc, String capIds) {
        this.result = result;
        this.resultDesc = resultDesc;
        this.capIds = capIds;
    }

    protected WasuChAuth(Parcel in) {
        result = in.readString();
        resultDesc = in.readString();
        capIds = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(result);
        dest.writeString(resultDesc);
        dest.writeString(capIds);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<WasuChAuth> CREATOR = new Creator<WasuChAuth>() {
        @Override
        public WasuChAuth createFromParcel(Parcel in) {
            return new WasuChAuth(in);
        }

        @Override
        public WasuChAuth[] newArray(int size) {
            return new WasuChAuth[size];
        }
    };

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getResultDesc() {
        return resultDesc;
    }

    public void setResultDesc(String resultDesc) {
        this.resultDesc = resultDesc;
    }

    public String getCapIds() {
        return capIds;
    }

    public void setCapIds(String capIds) {
        this.capIds = capIds;
    }

    @Override
    public String toString() {
        return "WasuChAuth{" +
                "result='" + result + '\'' +
                ", resultDesc='" + resultDesc + '\'' +
                ", capIds='" + capIds + '\'' +
                '}';
    }
}
